﻿using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Media;

namespace Groovy_IM.ViewModels.ChatPage
{
    public class PeopleItemViewModel : INotifyPropertyChanged
    {

        private string bName;

        public string BuddyName
        {
            get { return bName; }
            set { bName = value; NotifyPropertyChanged("BuddyName"); }
        }

        private string tag;

        public string Tag
        {
            get { return tag; }
            set { tag = value; NotifyPropertyChanged("Tag"); }
        }
        
        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
